package com.atguigu.day05;

import java.util.Arrays;

public class Test12 {
    public static void main(String[] args) {
        char ascii[] = new char[62];
        for (int index = 0; index < 10; index++)
            ascii[index] = (char) ('0' + index);
        for (int index = 0; index < 26; index++)
            ascii[index + 10] = (char) ('a' + index);
        for (int index = 0; index < 26; index++)
            ascii[index + 36] = (char) ('A' + index);
        char[] randomAscii = new char[5];
        for (int i = 0; i < 10; i++) {
            System.out.print("随机验证码:");
            for (int j = 0; j < randomAscii.length; j++) {
                randomAscii[j] = ascii[(int) (Math.random() * 53)];
                System.out.print(randomAscii[j]);
            }
            System.out.println();
        }
    }
}
